﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
using System.Net;
using System.Net.Cache;
using Yd.Util;
namespace yedian
{
    public partial class ActionList : AdminPage
    {
        public override void BindD()
        {
            try
            {
                this.rptlist.DataSource = GetPageSource(PageBtn, cbll.Querytz_action);
                this.rptlist.DataBind();
            }
            catch (Exception e)
            {
                SaveSystemLog(e.Message);
            }
        }
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            Dictionary<string, string> _d = new Dictionary<string, string>();
            if (this.actionName.Text.Trim() != "")
                _d.Add("actionName", this.actionName.Text.Trim());
            if (actionstatus.Value.Trim() != "")
            {
                _d.Add("actionStatus", this.actionstatus.Value.Trim());
            }
            base.QueryGoToUrl("ActionList.aspx", _d);
        }

        public string sfrzs(string status,string hdId,string actionName)
        {
            if (status == "0")
            {
                return "<a href=\"javascript:;\" onclick=\"del('"+hdId+"','"+actionName+"')\">删除</a>";
            }
            return "已删除";
        }
    }
}